﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GalaSoft.MvvmLight;

namespace BehaviorDemoApp1.ViewModel
{
  public class TestViewModel : ViewModelBase
  {
    private int brakeSpeed = 50;
    public int BrakeSpeed
    {
      get { return brakeSpeed; }
      set
      {
        if (brakeSpeed != value)
        {
          if (value > 0)
          {
            System.Diagnostics.Debug.WriteLine("Setting value to " + value);
            brakeSpeed = value;
            RaisePropertyChanged(() => BrakeSpeed);
          }
        }
      }
    }
  }
}
